extends "../cex___toolman/cex___toolman.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "火焰图腾"
	lv = 2
	attCoe.atkRan = 3
	attCoe.atk = 0
	attCoe.maxHp = 150 / 112.5 / 2
	aiOn = false
	addSkillTxt("[color=red]无法移动，无法攻击[/color]\n每秒对攻击范围内所有敌方造成40点真伤")

func _upS():
	var chas = getAllChas(1)
	for i in chas:
		if inrange(i.cell,cell,att.atkRan):
			hurtChara(i,40,Chara.HurtType.REAL,Chara.AtkType.SKILL)

func inrange(a,b,c):
	var x = abs(a.x - b.x)
	var y = abs(a.y - b.y)
	return x*x + y*y <= c*c